#include "ficheros.h"

typedef struct{
	char nombre[60];
	unsigned int inodo;
}entrada;

#define CAM 60 

int montar(const char *nombre_disco);
int desmontar();

int extraer_camino(const char *camino, char *inicial, char *final);
int buscar_entrada(const char *camino_parcial, unsigned int *p_inodo_dir, unsigned int *p_inodo, unsigned int *p_entrada);

int mi_creat(const char *camino);
int mi_link(const char *camino1, const char *camino2);
int mi_unlink(const char *camino);

int mi_dir(const char *camino, char *buffer);
int mi_stat(const char *camino, STAT *p_stat);
int mi_read(const char *camino, void *buf, unsigned int offset, unsigned int nbytes);
int mi_write(const char *camino, const void *buf, unsigned int offset, unsigned int nbytes);
